<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table,tr,td,th{
            border: 2px solid pink;
            border-collapse: collapse;
            font-size: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
<table>
    <tr>
        <th>id</th>
        <th>name</th>
        <th>remark</th>
        <th>createdTime</th>
    </tr>
    <tr th:each="prod: ${allGoods}">
        <td th:text="${prod.id}"></td>
        <td th:text="${prod.name}"></td>
        <td th:text="${prod.remark}"></td>
        <td th:text="${prod.createdTime}"></td>
    </tr>
</table>
</body>
</html>